interface Customer {
  name: string;
  degree: number;
  phone: string;
}

type AppAttrToObj<T, K extends string, V> = {
  [P in keyof T | K]: P extends keyof T ? T[P] : V;
};

type Test = AppAttrToObj<Customer, "weixin", string>;

export {};
